package a66weding.com.jiehuntong.widgets.scoll;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PointF;
import android.support.v4.view.animation.FastOutSlowInInterpolator;
import android.util.AttributeSet;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Interpolator;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.ScrollView;

import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.anim.ResetHeightAnimation;
import a66weding.com.jiehuntong.inner.ScrollListener;

/**
 * Created by admin on 2016/6/29.
 */
public class Diy_Scroll extends ScrollView  {
    public Diy_Scroll (Context  context){
        super(context);
    }
    public Diy_Scroll(Context context, AttributeSet attrs) {
        super(context, attrs);

    }
    private PointF startPF = new PointF();



    private ScrollListener scrolllistener;

    public void setScrolllistener(ScrollListener scrolllistener) {
        this.scrolllistener = scrolllistener;
    }

    @Override
    protected void onScrollChanged(int l, int t, int oldl, int oldt) {
        scrolllistener.change(t);
        super.onScrollChanged(l, t, oldl, oldt);
    }
}
